package com.weipai.education.dao;

import com.weipai.education.model.Activity;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/12/11 10:29
 */
public interface ActivityDao {
    List<Map<String,Object>> list(Integer start, Integer size, Integer isAudit, Integer activityCateName, String key, String userID);

    Integer listAmount(Integer isAudit, Integer activityCateName, String key, String userID);

    int update(Activity activity);

    int insert(Activity activity);

    Activity selectByPrimaryKey(String id);

    int batchDeleteById(String[] id);

    int getActivityByCateId(String id1);
}
